package com.service;

import com.dao.EmpEsRepository;
import com.entity.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RepositoryService {

    @Autowired
    private EmpEsRepository empEsRepository;
    public void doSth(){
        Iterable<Emp> all = empEsRepository.findAll();

        for (Emp emp:all){
            System.out.println("emp"+emp);
        }
    }
}
